package Binrary_Management_System.Book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 何华树
 * Date: 2024-09-13
 * Time: 13:35
 */
public class BookList {
    Book[] books = new Book[10];
    private int UseSize;

    public BookList() {
        books[0] = new Book("西游记","吴承恩","小说",10);
        books[1] = new Book("三国演义","罗贯中","小说",15);
        books[2] = new Book("红楼梦","曹雪芹","小说",20);

        UseSize = 3;
    }

    public Book getBook(int pos) {
        return books[pos];
    }

    public void setBook(int pos,Book book) {
        books[pos] = book;
    }

    public int getUseSize() {
        return UseSize;
    }

    public void setUseSize(int useSize) {
        UseSize = useSize;
    }
}
